home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Applications / Calculators / NumberCrunch 1.41 / Number Crunch II Demo / Writing External Codes (xCOD) / FORTRAN source code / Scripts / Fort2xCOD
Encoding:
Text File  |  1992-09-03  |  712 b   |  31 lines  |  [TEXT/MPS ]

  1. #
  2. # CODE  -  compile and link a FORTRAN program
  3. #              into a code resource (with compile options)
  4. #  for now, it always has ID = 42, type = CODE. 
  5. #  It also seems that the {file} name MUST be uppercase.
  6. #
  7.  
  8. if {#} < 1
  9.     beep
  10.     echo "usage:  Run filename <options>"
  11.     exit
  12. end
  13.  
  14. set file "{1}"    # get filename from arguments
  15. shift            # remove it, leaving options
  16.  
  17. FORTRAN {file}.f -opt=1 -extended {parameters} 
  18. Link  -rt xCOD=42 -w -m "{file}" ∂
  19.     -t rsrc -c RSED ∂
  20.     -sn Main="{file}" ∂
  21.     -sn f_RunTime="{file}" ∂
  22.     -sn f_Intrinsics="{file}" ∂
  23.     {file}.f.o ∂
  24.     "{FLibraries}FORTRANLib.o" ∂
  25.     "{FLibraries}IntrinsicLib.o" ∂
  26.     "{FLibraries}FSANELib.o" ∂
  27.     "{Libraries}Interface.o" ∂
  28.     "{Libraries}Runtime.o" ∂
  29.     -o "{file}.code"
  30.  
  31.